package com.example.controller;

import org.joda.time.DateTime;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Date 2022/3/5
 * @Created by Jonathan
 */
@Controller
@RequestMapping("/editor")
public class EditorController {

    /**
     * @link {https://www.bilibili.com/video/BV1i541157T2?p=71}
     * @param date
     * @return
     */

    @RequestMapping("/m1")
    public String m1(DateTime date) {
        System.out.println("date is :" + date.getDayOfYear());
        // 前缀和后缀去 视图解析器里面找
        return "result";
    }
}
